//
//  WBDemoViewController.swift
//  新浪微博
//
//  Copyright © 2017年 sweet. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super .viewDidLoad()

    }
    @objc private func nextClick(){
        let vc = WBDemoViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension WBDemoViewController {
    override func setUpTableView() {
        super .setUpTableView()
        title = "第\(String(describing: navigationController?.childViewControllers.count ?? 0))个"
        view .backgroundColor = UIColor .cz_random()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(nextClick))
    }
}
